.class public Lcom/xingbook/park/activity/de;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method constructor <init>(Lcom/xingbook/park/activity/WebAct;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/de;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 9

    iget-object v0, p0, Lcom/xingbook/park/activity/de;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/park/activity/WebAct;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    iget v1, p1, Landroid/os/Message;->what:I

    const/4 v2, 0x1

    if-ne v1, v2, :cond_2

    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    move-object v8, v1

    check-cast v8, Lcom/xingbook/park/activity/df;

    iget-object v1, v8, Lcom/xingbook/park/activity/df;->a:Ljava/lang/String;

    iget-object v2, v8, Lcom/xingbook/park/activity/df;->b:Ljava/lang/String;

    iget v3, v8, Lcom/xingbook/park/activity/df;->c:I

    iget v4, v8, Lcom/xingbook/park/activity/df;->d:I

    iget v5, v8, Lcom/xingbook/park/activity/df;->e:I

    iget v6, v8, Lcom/xingbook/park/activity/df;->f:I

    iget-object v7, v8, Lcom/xingbook/park/activity/df;->g:Ljava/lang/String;

    iget-object v8, v8, Lcom/xingbook/park/activity/df;->h:Ljava/lang/String;

    invoke-static/range {v0 .. v8}, Lcom/xingbook/park/activity/WebAct;->a(Lcom/xingbook/park/activity/WebAct;Ljava/lang/String;Ljava/lang/String;IIIILjava/lang/String;Ljava/lang/String;)V

    :cond_1
    :goto_1
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    goto :goto_0

    :cond_2
    iget v1, p1, Landroid/os/Message;->what:I

    const/4 v2, 0x2

    if-ne v1, v2, :cond_1

    new-instance v1, Landroid/content/Intent;

    const-class v2, Lcom/xingbook/park/activity/RegAct;

    invoke-direct {v1, v0, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v2, "com.xingbook.park.activity.RegAct_TOACCOUNTMANAGERACT"

    const/4 v3, 0x0

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    invoke-virtual {v0, v1}, Lcom/xingbook/park/activity/WebAct;->startActivity(Landroid/content/Intent;)V

    invoke-virtual {v0}, Lcom/xingbook/park/activity/WebAct;->finish()V

    goto :goto_1
.end method
